@extends('admin.pop_edit')
@section('body')
    <form lay-filter="editForm"
          action="{{admin_url($baseRoute.'update')}}"
          class="layui-form model-form">
        <input name="id" type="hidden"/>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">所属时间:</label>
            <div class="layui-input-block">
                <input type="text" name="ctime"  class="layui-input" id="txtHfTime"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
         <input type="hidden" name="diseases_id" value='0'>
        <input type="hidden" name="source_id" value='0'>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">消费金额:</label>
            <div class="layui-input-block">
                <input type="text" name="money" placeholder="" class="layui-input"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">展现数量:</label>
            <div class="layui-input-block">
                <input type="text" name="zhanshi"  class="layui-input"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">点击数量:</label>
            <div class="layui-input-block">
                <input type="text" name="dianji"  class="layui-input"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-form-required">对话数量:</label>
            <div class="layui-input-block">
                <input type="text" name="duihua"  class="layui-input"
                       lay-verType="tips" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item text-right">
            <button class="layui-btn" lay-filter="ajaxForm" lay-submit>@lang('common.save')</button>
            <button class="layui-btn layui-btn-primary" type="button"
                    ew-event="closeDialog">@lang('common.cancel')</button>
        </div>
    </form>
@stop
@push('script')
    <script type="text/javascript">
        layui.use(['form','laydate'], function () {
            let laydate = layui.laydate, $ = layui.$;
            laydate.render({
                elem: '#txtHfTime', 
                trigger: 'click'
            });
            layui.form.val('editForm', {!! json_encode($entity) !!});
        });
    </script>
@endpush